<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .con{
            height: 50px;
            background-image: linear-gradient(#454545,#181818);
        }
        img{
            float: left;
            height: 30px;
            margin: 10px;
        }
        ul{
            float: right;
            margin: 0px;
        }
        ul>li{
            list-style-type: none;
            display: inline-block;
            line-height: 50px;
            margin: 0px;
        }
        li>a{
            padding-left: 15px;
            line-height: 33px;
            height: 33px;
            display: inline-block;
        }
        span{
            color: white;
            line-height: 33px;
            height: 33px;
            display: inline-block;
            padding-right: 15px;
        }
        li>a:hover{
            background-image: url(../css/nav.png);
        }
        li>a:hover>span{
            background-image: url(../css/nav.png);
            background-position: right;
        }
    </style>
</head>
<body>
    <div class="con">
        <img src="../css/weixin.png">
        <ul>
            <li><a href=""><span>菜单1</span></a></li>
            <li><a href=""><span>菜单2</span></a></li>
            <li><a href=""><span>菜单3</span></a></li>
            <li><a href=""><span>菜单4</span></a></li>
        </ul>
    </div>
</body>
</html>